﻿function StringBuilder(value)
{
	this._buffer = new Array();
	if (value != null)
		this.Append(value);
}
StringBuilder.prototype._buffer = new Array();
StringBuilder.prototype._length = 0;
StringBuilder.prototype.Append = function Append(value)
{
	if (value != null)
	{
		//		if (typeof (value) != "string")
		//			value = value.toString();
		this._buffer.push(value);
		this._length += value.toString().length;
	}
}
StringBuilder.prototype.Clear = function Clear()
{
	this._buffer.length = 0;
	this._length = 0;
}
StringBuilder.prototype.get_Length = function get_Length()
{
	return this._length;
}
StringBuilder.prototype.toString = function toString()
{
	return this._buffer.join("");
}
